// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import { Rate, Progress  } from 'element-ui'
import App from './App'
import router from './router'
import components from './components/'
import filters from './filters/'
import axios from 'axios'
import Vuerify from 'vuerify'
import VuerifyDirective from 'v-vuerify-next'
import FastClick from 'fastclick'

Vue.use(MintUI)

Vue.use(Rate)
Vue.use(Progress)

Vue.use(Vuerify)
Vue.use(VuerifyDirective)

Object.keys(components).forEach(function(name) {
    Vue.component(name, components[name]);
});

Object.keys(filters).forEach(function(name) {
    Vue.filter(name, filters[name]);
});

FastClick.attach(document.body)
Vue.prototype.$http = axios
Vue.config.productionTip = false



/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
